		<!-- js for user chart -->
		<script type="text/javascript">
		$(document).ready(function() {
			var chart = new Highcharts.Chart({
				chart: {
					renderTo: 'container_<?php echo $cmd ?>',
					//zoomType: 'x'
				},
			        title: {
					text: '<?php echo $title ?>'
				},
			        subtitle: {
					text: 'Click and drag in the plot area to zoom in'
				},
                credits:{enabled:false},
				xAxis: {
					
					categories: [
                    <?php 
                      $x = $stats_data[0];
                      foreach($x['data'] as $point)
                      {                                                
                        echo "'{$point['start_at']} - {$point['end_at']}',"; 
                      } 
                    ?>  
                    ],
                    
                    title: {
						text: null
					},
					
         labels: {
            rotation: -45,
            align: 'right',
            style: {
                font: 'normal 13px Verdana, sans-serif'
            }
         }                      
				},
				yAxis: {
					title: {
						text: '<?php echo $yAixsTitle ?>'
					},
					min: 0.0,
					startOnTick: false,
					showFirstLabel: false
				},

      legend: {        
         layout: 'vertical',
         align: 'right',
         verticalAlign: 'top',
         x: -10,
         y: 100,
         borderWidth: 0
      },
				plotOptions: {
					area: {
						fillColor: {
							linearGradient: [0, 0, 0, 300],
							stops: [
								[0, '#4572A7'],
								[1, 'rgba(0,0,0,0)']
							]
						},
						lineWidth: 1,
						marker: {
							enabled: false,
							states: {
								hover: {
									enabled: true,
									radius: 3
								}
							}
						},
						shadow: false,
						states: {
							hover: {
								lineWidth: 1
							}
						}
					}
				},

				series: [
				<?php foreach($stats_data as $set): ?>
				{
					type: 'line',
					name: '<?php echo $set['name'] ?>',
					//pointInterval: 24 * 3600 * 7000,
					
					data: [
						<?php
						if( $set['data'] ){
						  foreach($set['data'] as $d){
						    //echo "[". $d["d"] .",". $d["number"]."], ";
						    echo $d["number"].", ";						   
						  }
						}

						 ?>
					]
				},
				<?php endforeach; ?>
				]
			});


		});
		</script>
<div id="container_<?php echo $cmd ?>" style="width=954px; height: 460px; margin: 0 auto; "></div>